package com.rocsea.robot.model.request;
import com.rocsea.robot.model.bo.   TableCheckConfig;
import io.swagger.annotations.ApiModelProperty;

import java.util.*;

/**
 * @Author RocSea
 * @Date 2022/12/2
 */
public class EtlSyncCheckConfigBuildRequest {
    @ApiModelProperty(value = "同步模块", required = true)
    private Integer sourceServiceModule;
    @ApiModelProperty(value = "源数据库", required = true)
    private String sourceSchemaName;
    @ApiModelProperty(value = "表检查属性", required = true)
    private List<TableCheckConfig> tableCheckConfigList;
    @ApiModelProperty(value = "目标表数据库", required = true)
    private String targetSchemaName;

    public Integer getSourceServiceModule() {
        return sourceServiceModule;
    }

    public void setSourceServiceModule(Integer sourceServiceModule) {
        this.sourceServiceModule = sourceServiceModule;
    }

    public String getSourceSchemaName() {
        return sourceSchemaName;
    }

    public void setSourceSchemaName(String sourceSchemaName) {
        this.sourceSchemaName = sourceSchemaName;
    }

    public List<TableCheckConfig> getTableCheckConfigList() {
        return tableCheckConfigList == null ? null : new ArrayList<>(tableCheckConfigList);
    }

    public void setTableCheckConfigList(List<TableCheckConfig> tableCheckConfigList) {
        this.tableCheckConfigList = tableCheckConfigList == null ? null : new ArrayList<>(tableCheckConfigList);
    }

    public String getTargetSchemaName() {
        return targetSchemaName;
    }

    public void setTargetSchemaName(String targetSchemaName) {
        this.targetSchemaName = targetSchemaName;
    }
}
